determine the nodes branches and loops of a circuit